package com.zoop.service;

import java.util.List;

import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;

import com.zoop.model.About;

@CacheConfig(cacheNames = "about")
public interface AboutService {

	@CacheEvict(cacheNames = {"about"}, allEntries = true)
	About save(About about);
	
	@Cacheable(cacheNames = {"about"})
	List<About> findAll();
	
}
